FROM openjdk:17

MAINTAINER 作者

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /ruoyi-admin

WORKDIR /ruoyi-admin

EXPOSE 8080

ADD ./ruoyi-admin/target/ruoyi-admin.jar ./

CMD sleep 5;java $JAVA_OPTS -jar ruoyi-admin.jar
